package P1000.src.Java.main;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int n = scanner.nextInt(); // 读取整数个数
            int[] numbers = new int[n];
            for (int i = 0; i < n; i++) {
                numbers[i] = scanner.nextInt(); // 读取每个整数
            }
            Arrays.sort(numbers); // 对整数数组进行排序
            for (int i = 0; i < n; i++) {
                if (i > 0) {
                    System.out.print(" "); // 在数字之间添加空格
                }
                System.out.print(numbers[i]); // 输出排序后的整数
            }
            System.out.println(); // 每组样例输出后换行
        }
        scanner.close();
    }
}